package clazz.initclass.demoone;

import lombok.extern.slf4j.Slf4j;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 3/11/2022 8:24 AM
 */
@Slf4j
public class ChildClass extends ParentClass {

    private int childX = 1;

    public ChildClass() {
        log.info("子类的构造方法...");
    }

    @Override
    public void setX(int x) {
        super.setX(x);
        childX = x;
    }

    public void printX() {
        log.info("ChildX = " + childX);
    }

}
